package com.sz.biz.common.customer.service;

import com.sz.biz.common.customer.dto.CusCompanyDto;

/**
 * Created by xutao on 17/4/1.
 */
public interface CustomerCompanyService {
    /**
     * 新增客户基本信息
     *
     * @param entry 新增的实体
     * @return
     */
    int save(CusCompanyDto entry);

    /**
     * 凭借customerId查找对应的公司
     *
     * @param refCustomerId
     * @return
     */
    CusCompanyDto findCompanyByCustomerId(Integer refCustomerId);

    /**
     * 凭借id修改对应的公司
     *
     * @param cusCompanyDto
     * @return
     */
    int updateCompanyById(CusCompanyDto cusCompanyDto);

    CusCompanyDto findByCustomerId(Integer refCustomerId);
}
